import axios from '../utils/request.js'

export function login(data) {
    return axios({
        url: '/login',
        method: "post",
        data
    })
}


export function register(data) {
    return axios({
        url: '/register',
        method: 'post',
        data
    })
}